#include <fmt/core.h>
#include <string>
#include <csignal>
int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        fmt::print("./mykill signumber pid\n");
        return 1;
    }
    int signum = std::stoi(argv[1]);
    pid_t target = std::stoi(argv[2]);

    int n = kill(target, signum);
    if (n == 0)
        fmt::print("send {} to {} success", signum, target);
    return 0;
}
